//
//  MoreMiddleCollectionViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MoreMiddleCollectionViewCell.h"
#import "TAMacro.h"

@implementation MoreMiddleCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _iconImageView = [UIImageView new];
        [self.contentView addSubview:_iconImageView];
        _nameLabel = [UILabel new];
        _nameLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_nameLabel];
        _descLabel = [UILabel new];
        _descLabel.font = [UIFont systemFontOfSize:11];
        _descLabel.textColor = [UIColor blackColor];
        _descLabel.alpha = 0.4;
        _descLabel.numberOfLines = 0;
        [self.contentView addSubview:_descLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    CGFloat width = (SCREEN_WIDTH - 65) / 4;
    _iconImageView.frame = CGRectMake(0, 0, width, width);
    _nameLabel.frame = CGRectMake(0, width, width, SCREEN_WIDTH / 375 * 20);
    _descLabel.frame = CGRectMake(0, width + 20, width, SCREEN_WIDTH / 375 * 20);
}


- (void)awakeFromNib {
    // Initialization code
}

@end
